<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="dialog.js">
</script>
<script type="text/javascript">
    document.write("<link href='../language/" + lang.ax + ".css' type='text/css' rel='stylesheet'>");
    document.write("<link href='../skin/" + config.Skin + "/dialog.css' type='text/css' rel='stylesheet'>");
    var Q = lang["DlgAnchor"];
    document.write("<title>" + Q + "</title>");
    var fC;
    var aC;
    var hE = "";
    aC = I.dm();
    if (aC.tagName.toUpperCase() == "A") {
        if (aC.href.toUpperCase() == "") {
            hE = aC.name;
            rY(aC);
        }
    }
    function ah() {
        $("d_anchor").value = hE;
        uR();
        lang.TranslatePage(document);
        parent.bp(Q);
    };
    function uR() {
        $("d_allanchor").options.length = 0;
        var gw = A.F.body.getElementsByTagName("A");
        for (i = 0; i < gw.length; i++) {
            if (gw[i].href.toUpperCase() == "") {
                $("d_allanchor").options[$("d_allanchor").options.length] = new Option(gw[i].name, gw[i].name);
            }
        }
    };
    function rK(bn) {
        var gw = A.F.body.getElementsByTagName("A");
        for (i = 0; i < gw.length; i++) {
            if (gw[i].href.toUpperCase() == "") {
                if (gw[i].name == bn) {
                    return gw[i];
                }
            }
        }
        return null;
    };
    function ok() {
        var hE = dX($("d_anchor").value);
        if (hE == "") {
            cv($("d_anchor"), lang["DlgAnchorNoName"]);
            return;
        }
        fC = I.ay();
        aC = I.dm();
        var ua = false;
        if (aC.tagName.toUpperCase() == "A") {
            if (aC.href.toUpperCase() == "") {
                aC.name = hE;
                ua = true;
            }
        }
        if (!ua) {
            var html = "";
            if (fC == "Control") {
                var eD = A.F.createElement('A');
                eD.name = hE;
                var D = I.aX();
                D.parentNode.insertBefore(eD, D);
                D.parentNode.removeChild(D);
                eD.appendChild(D);
            } else {
                var sF = 'javascript:void(0);/*' + (new Date().getTime()) + '*/';
                A.F.execCommand('CreateLink', false, sF);
                var kC = A.F.links;
                for (i = 0; i < kC.length; i++) {
                    var eD = kC[i];
                    if (eD.getAttribute('href', 2) == sF) {
                        eD.name = hE;
                        eD.removeAttribute("href", 0);
                    }
                }
            }
        }
        parent.aT();
    };
    function vb() {
        var bG = $("d_allanchor").selectedIndex;
        if (bG < 0) {
            alert(lang["DlgAnchorNoSelected"]);
            return;
        }
        var mt = rK($("d_allanchor").options[bG].value);
        if (mt) {
            rY(mt);
        }
    };
    function vd() {
        var bG = $("d_allanchor").selectedIndex;
        if (bG < 0) {
            alert(lang["DlgAnchorNoSelected"]);
            return;
        }
        var mt = rK($("d_allanchor").options[bG].value);
        if (mt) {
            C.cW(mt, true);
            $("d_allanchor").options[bG] = null;
        }
    };
    function rY(bE) {
        I.nz();
        I.tI(bE);
        I.Save(true);
    }
</script>
</head>
<body onLoad="ah()">
<table border=0 cellpadding=0 cellspacing=5 id=tabDialogSize>
  <tr>
    <td><table cellspacing="0" cellpadding="5" border="0" align=center>
        <tr valign="top">
          <td nowrap align="left"><span lang=DlgAnchorName></span>:<br>
            <input type=text size=20 id="d_anchor" style="width:150px;">
            <br>
            <span lang=DlgAnchorOther></span>:<br>
            <select id="d_allanchor" size=8 style="width:150px;" onChange="$('d_anchor').value=this.options[this.selectedIndex].value;">
            </select></td>
          <td nowrap height="100%"><table border=0 cellpadding=0 cellspacing=0 height="100%">
              <tr>
                <td height="50%" valign=top><input type=button class="dlgBtnCommon dlgBtn" style="margin-top:15px" name="btnOK" onClick="ok()" value="" lang=DlgBtnOK>
                  <br>
                  <input type=button class="dlgBtnCommon dlgBtn" style="margin-top:5px" name="btnCancel" onClick="parent.aP()" value="" lang=DlgBtnCancel>
                  <br></td>
              </tr>
              <tr>
                <td height="50%" valign=bottom><input type=button class="dlgBtnCommon dlgBtn" name="btnMove" onClick="vb()" value="" lang=DlgBtnGoto>
                  <br>
                  <input type=button class="dlgBtnCommon dlgBtn" style="margin-top:5px" name="btnDel" onClick="vd()" value="" lang=DlgBtnDel>
                  <br></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>